package xiongwei.jiang.constant;

/**
 * 企业微信接口地址常量类
 *
 * @author 天之蓝
 */
public interface WXWorkApiConstants {
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/91039/">官方文档</a>
     */
    String GET_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90196/">官方文档</a>
     */
    String GET_USER_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=%s&userid=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90200/">官方文档</a>
     */
    String GET_DEPARTMENT_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90208/">官方文档</a>
     */
    String GET_DEPARTMENT_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s&id=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90213/">官方文档</a>
     */
    String GET_TAG_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/tag/get?access_token=%s&tagid=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90216/">官方文档</a>
     */
    String GET_TAG_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/tag/list?access_token=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/91023/">官方文档</a>
     */
    String GET_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=%s&code=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90236/">官方文档</a>
     */
    String POST_SEND_APP_MSG_URL = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90253/">官方文档</a>
     */
    String POST_UPLOAD_TEMP_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=%s&type=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90256/">官方文档</a>
     */
    String POST_UPLOAD_IMAGE_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg?access_token=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90254/">官方文档</a>
     */
    String GET_DOWNLOAD_TEMP_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/get?access_token=%s&media_id=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90255/">官方文档</a>
     */
    String GET_DOWNLOAD_VOICE_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/get/jssdk?access_token=%s&media_id=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90262/">官方文档</a>
     */
    String POST_CHECKIN_RECORD_URL = "https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckindata?access_token=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90506/">官方文档</a>
     */
    String GET_CORP_TICKET_URL = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=%s";
    /**
     * <a href="https://developer.work.weixin.qq.com/document/path/90506/">官方文档</a>
     */
    String GET_APP_TICKET_URL = "https://qyapi.weixin.qq.com/cgi-bin/ticket/get?access_token=%s&type=agent_config";
}
